//
//  SIXPulishCell.m
//  微博-发布
//
//  Created by key on 16/5/20.
//  Copyright © 2016年 key. All rights reserved.
//

#import "SIXPulishCell.h"
#import "SIXPulishModel.h"


@interface SIXPulishCell ()

@property (weak, nonatomic) IBOutlet UILabel *textLabel;
@property (weak, nonatomic) IBOutlet UIButton *iconBtn;

@end

@implementation SIXPulishCell

+(instancetype)pulish{
    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil] lastObject];
}

- (void)setModel:(SIXPulishModel *)model{
    _model = model;
    [self.iconBtn setBackgroundImage:[UIImage imageNamed:model.icon] forState:UIControlStateNormal];
    self.textLabel.text = model.title;
}

@end
